/**
 * 
 */
package org.swing.utility.net.imp;

import java.net.SocketAddress;

import org.swing.utility.net.message.OSCMessage;

/**
 * @author lqnhu
 *
 */
public interface OSCListener {
	/**
	 * Called when a new OSC message arrived at the receiving local socket.
	 *
	 * @param msg
	 *            the newly arrived and decoded message
	 * @param sender
	 *            who sent the message
	 * @param time
	 *            the time tag as returned by
	 *            <code>OSCBundle.getTimeTag()</code> ; or
	 *            <code>OSCBundle.NOW</code> if no time tag was specified or the
	 *            message is expected to be processed immediately
	 */
	public void messageReceived(OSCMessage msg, SocketAddress sender, long time);
}
